<template>
    <h1>{{ "grandson" }}</h1>
    <p>Count: {{ count }}</p>
</template>

<script setup lang="ts">
import { inject } from "vue";
const count = inject("count", 0); // 如果没有提供默认值，则会返回 undefined
</script>

<style scoped></style>
